package com.dog.framework.core.enums;

/**
 */
public enum NotifyRobotMsgEnum {

    /**
     * 设备名称同步
     */
    DEVICE_NAME_SYNC(1000),
    /**
     * 参数同步
     */
    PARAMS_SYNC(1001),

    /**
     * 请求设备基本参数
     */
    BASIC_PARAM_REQ(1002);


    private final Integer cmd;

    NotifyRobotMsgEnum(Integer cmd) {
        this.cmd = cmd;
    }

    public static NotifyRobotMsgEnum valueOf(Integer cmd) {
        for (NotifyRobotMsgEnum value : values()) {
            if (value.cmd.equals(cmd)) {
                return value;
            }
        }
        return null;
    }

    public Integer getCmd() {
        return cmd;
    }

}
